package com.xxxx.yeb.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 2 * @Author: yangxin
 * 3 * @Date: 2020/7/20 11:51
 * 4
 */
@Configuration
@ConditionalOnClass(value = {PaginationInterceptor.class})
public class MyBatisConfig {
        @Bean
        public PaginationInterceptor paginationInterceptor() {
            PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
            return paginationInterceptor;
        }
}
